package cn.yunhe.api;

import cn.yunhe.common.TestException;
import cn.yunhe.dto.DateAndTotal;
import cn.yunhe.dto.TotalMsgDto;

import java.time.LocalDateTime;
import java.util.List;

public interface IMerchantService {


    /**
     * 根据商户id 查询今天
     * @param merchantId
     * @return
     * @throws TestException
     */
    TotalMsgDto queryTodayTotalByMerchantId(Long merchantId) throws TestException;




    /**
     * 根据商户id 查询昨天
     * @param merchantId
     * @return
     * @throws TestException
     */
    TotalMsgDto queryYesterdayTotalByMerchantId(Long merchantId) throws TestException;


    /**
     * 查询近两周
     * @param merchantId
     * @return
     */
    List<DateAndTotal> queryDoubleWeek(Long merchantId) throws TestException;
}
